Muito bom vlw ae, to usando no meu site ^^
- Fórum
- OTServ
- Tutoriais
- Tutoriais de Websites
- [Gesior] Training offline players
info
Grupo: Artesão
Registrado: 09/06/09
Posts: 146
Reputação: +4
Char no Tibia: Shared Elven

info
Grupo: Campones
Registrado: 24/01/13
Posts: 15
Reputação: 0
Char no Tibia: Hess Velithus

Cara o meu não deu não deu um erro aqui doido
info
Grupo: Herói
Registrado: 23/12/08
Posts: 2.4k
Reputação: +359
Gênero: Masculino
Char no Tibia: Gordo Warlike

Cara o meu não deu não deu um erro aqui doido
posta o erro niguem aqui tem bola de cristal!
info
Grupo: Campones
Registrado: 24/01/13
Posts: 15
Reputação: 0
Char no Tibia: Hess Velithus

Bllz Vou Posta 
isso ai que tedou :]
Editado Janeiro 26 por Davycorreaarantes
info
Grupo: Herói
Registrado: 23/12/08
Posts: 2.4k
Reputação: +359
Gênero: Masculino
Char no Tibia: Gordo Warlike

nao contem a tabela offlinetrining
info
Grupo: Campones
Registrado: 24/01/13
Posts: 15
Reputação: 0
Char no Tibia: Hess Velithus

nao contem a tabela offlinetrining
e aonde aranja essa tabela?
info
Grupo: Marquês
Registrado: 29/10/11
Posts: 1.2k
Reputação: +134
Gênero: Masculino

nao contem a tabela offlinetrining
e aonde aranja essa tabela?
Você precisa encontrar alguma database que contém essa tabela,eu nunca vi uma que tenha,mas não custa procurar se eu axar eu posto aqui.Mas não fique dependendo disso,corra atrás também.
CREATE TABLE offline_training
(account_id int(11),
name varchar(256),
start_training int(11),
type varchar(256))
ALTER TABLE `players` ADD
`offlinetraining_time` smallint(5) unsigned NOT NULL DEFAULT 43200;
`offlinetraining_skill` int(11) NOT NULL DEFAULT -1;
Editado Janeiro 27 por danielb
info
Grupo: Campones
Registrado: 24/01/13
Posts: 15
Reputação: 0
Char no Tibia: Hess Velithus

CREATE TABLE offline_training
(account_id int(11),
name varchar(256),
start_training int(11),
type varchar(256))
ALTER TABLE `players` ADD
`offlinetraining_time` smallint(5) unsigned NOT NULL DEFAULT 43200;
`offlinetraining_skill` int(11) NOT NULL DEFAULT -1;
CREATE TABLE offline_training
(account_id int(11),
name varchar(256),
start_training int(11),
type varchar(256))
ALTER TABLE `players` ADD
`offlinetraining_time` smallint(5) unsigned NOT NULL DEFAULT 43200;
`offlinetraining_skill` int(11) NOT NULL DEFAULT -1;
Tinha que fazer um novo topico
info
Grupo: Herói
Registrado: 23/12/08
Posts: 2.4k
Reputação: +359
Gênero: Masculino
Char no Tibia: Gordo Warlike

CREATE TABLE offline_training
(account_id int(11),
name varchar(256),
start_training int(11),
type varchar(256))
ALTER TABLE `players` ADD
`offlinetraining_time` smallint(5) unsigned NOT NULL DEFAULT 43200;
`offlinetraining_skill` int(11) NOT NULL DEFAULT -1;
CREATE TABLE offline_training
(account_id int(11),
name varchar(256),
start_training int(11),
type varchar(256))
ALTER TABLE `players` ADD
`offlinetraining_time` smallint(5) unsigned NOT NULL DEFAULT 43200;
`offlinetraining_skill` int(11) NOT NULL DEFAULT -1;
Tinha que fazer um novo topico
reportado por flood, vocepostou isso em muitos topicos, e seu comentario não é uma duvida ou ajuda sobre o topico!
Leia as regras!
info
Grupo: Herói
Registrado: 22/04/11
Posts: 2.5k
Reputação: +293
Gênero: Masculino
Char no Tibia: Thyn Zare

CREATE TABLE offline_training
(account_id int(11),
name varchar(256),
start_training int(11),
type varchar(256))
ALTER TABLE `players` ADD
`offlinetraining_time` smallint(5) unsigned NOT NULL DEFAULT 43200;
`offlinetraining_skill` int(11) NOT NULL DEFAULT -1;
CREATE TABLE offline_training
(account_id int(11),
name varchar(256),
start_training int(11),
type varchar(256))
ALTER TABLE `players` ADD
`offlinetraining_time` smallint(5) unsigned NOT NULL DEFAULT 43200;
`offlinetraining_skill` int(11) NOT NULL DEFAULT -1;
Tinha que fazer um novo topico
reportado por flood, vocepostou isso em muitos topicos, e seu comentario não é uma duvida ou ajuda sobre o topico!
Leia as regras!
Só postou em 2 tópicos, não em muitos, ele expressou a opinião dele e isso não é flood.
Abraços.
info
Grupo: Herói
Registrado: 23/12/08
Posts: 2.4k
Reputação: +359
Gênero: Masculino
Char no Tibia: Gordo Warlike

CREATE TABLE offline_training
(account_id int(11),
name varchar(256),
start_training int(11),
type varchar(256))
ALTER TABLE `players` ADD
`offlinetraining_time` smallint(5) unsigned NOT NULL DEFAULT 43200;
`offlinetraining_skill` int(11) NOT NULL DEFAULT -1;
CREATE TABLE offline_training
(account_id int(11),
name varchar(256),
start_training int(11),
type varchar(256))
ALTER TABLE `players` ADD
`offlinetraining_time` smallint(5) unsigned NOT NULL DEFAULT 43200;
`offlinetraining_skill` int(11) NOT NULL DEFAULT -1;
Tinha que fazer um novo topico
reportado por flood, vocepostou isso em muitos topicos, e seu comentario não é uma duvida ou ajuda sobre o topico!
Leia as regras!
Só postou em 2 tópicos, não em muitos, ele expressou a opinião dele e isso não é flood.
Abraços.
a regra é clara, todo comentario que nao expresse duvida ou complemente um topico é considerado flood, poisé um post vazio e sem sentido com o topico!
Reflita e comprrenda as regras, se eu saio postando isso que ele disse em 4 ou 5 topicos eu viro flooder e ele nao?
pfv né?
CREATE TABLE offline_training
(account_id int(11),
name varchar(256),
start_training int(11),
type varchar(256))
ALTER TABLE `players` ADD
`offlinetraining_time` smallint(5) unsigned NOT NULL DEFAULT 43200;
`offlinetraining_skill` int(11) NOT NULL DEFAULT -1;
CREATE TABLE offline_training
(account_id int(11),
name varchar(256),
start_training int(11),
type varchar(256))
ALTER TABLE `players` ADD
`offlinetraining_time` smallint(5) unsigned NOT NULL DEFAULT 43200;
`offlinetraining_skill` int(11) NOT NULL DEFAULT -1;
Tinha que fazer um novo topico
Não Há Necessidade de fazer outro Tópico, siga oquê nosso amigo PiabetaMan01 fez e depois execute no seu banco de dados esses 2 comandos...
Abração e sem brigas, apenas estamos tentando sanar dúvidas dos usuários do XTIBIA...
info
Grupo: Barão
Registrado: 23/03/08
Posts: 205
Reputação: +4

Tem inject nisso ai nao?






info
Grupo: Herói
Registrado: 23/12/08
Posts: 2.4k
Reputação: +359
Gênero: Masculino
Char no Tibia: Gordo Warlike
Bem essa pagina foi feita para mostrar os jogadores que estão usando o training offline!
Vá na pasta htdocs crie um arquivo chamado offline.php e cole isso dentro:
<?PHP $i = 0; $main_content .= '<h2>Already Training on Denera World!</h2><TABLE border=0 CELLSPACING=1 CELLPADDING=2 WIDTH=100%class="table table-striped"><TR><TD CLASS=white COLSPAN=4>'; $n = $SQL->query('SELECT COUNT(`offlinetraining_skill`) as `count` FROM `players` WHERE `offlinetraining_skill` > 0;')->fetch(); $main_content .= '<div class="alert alert-success">There are '.$n['count'].' players already training on our world!</div></TD></TR><TR><TD WIDTH=30%><B>Name</B></TD><TD WIDTH="10%"><B>Level</B></TD><TD WIDTH="20%"><B>Vocation</B></TD><TD WIDTH="50%"><center><B>Training Type</B></center></TD></TR>'; $list = $SQL->query('SELECT `name`, `level`, `vocation`, `promotion`, `offlinetraining_skill` FROM `players` WHERE `offlinetraining_skill` > 0;')->fetchAll(); foreach($list as $player) { $i++; $main_content.= '<TR><TD WIDTH=30%><A HREF="?subtopic=characters&name='.urlencode($player['name']).'">'.$player['name'].'</A></TD><TD WIDTH=10%>'.$player['level'].'</TD><TD WIDTH=20%>'.$vocation_name[0][$player['promotion']][$player['vocation']].'</TD><TD WIDTH=50%><center>'.$skill_name[0][$player['offlinetraining_skill']].'</center></TD></TR>'; } $main_content .= '</TABLE></td></tr></table>'; ?>Depois proxure o arquivo index.php na ainda na pasta htdocs e cole isso :
case "offline"; $topic = "offline"; $subtopic = "offline"; include("offline.php"); break;abaixo disso:
case "spells"; $topic = "Spells"; $subtopic = "spells"; include("spells.php"); break;e na pasta layouts/seulayout abra o arquivo layout.php e procure por isso:
embaixo coloque isso:
o resultado será esse!
Em breve estarei estilisando essa pagina!
Creditos: Potar, Gpedro e PiabetaMan01 por trazer ao Forum!
Editado Janeiro 7 por PiabetaMan01